<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MantenedorBanco.aspx.cs" Inherits="Mantenedores_MantenedorBanco" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contenido" Runat="Server">
    <asp:Panel ID="pnlMantenedorBanco" runat="server" GroupingText="Mantenedor de Banco"
        Height="100%">
    <table>
        <tr>
            <td style="text-align: right">
                Codigo :</td>
            <td style="text-align: left">
                <asp:TextBox ID="txbCodigo" runat="server" Width="100px"></asp:TextBox>
                *</td>
            <td style="text-align: left">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txbCodigo"
                    ErrorMessage="Requerido" ValidationGroup="ValidaCampos"></asp:RequiredFieldValidator></td>
            <td style="width: 100px; text-align: left">
                </td>
        </tr>
        <tr>
            <td style="text-align: right; height: 20px;">
                Nombre :</td>
            <td style="text-align: left; height: 20px;">
                <asp:TextBox ID="txbNombre" runat="server" Width="100px"></asp:TextBox>
                *</td>
            <td style="text-align: left; height: 20px;">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txbNombre"
                    ErrorMessage="Requerido" ValidationGroup="ValidaCampos"></asp:RequiredFieldValidator></td>
            <td style="width: 100px; text-align: left; height: 20px;">
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <br />
        <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" OnClick="btnCancelar_Click" CssClass="botonCancelar" /><asp:Button ID="btnEliminar" runat="server" Text="Eliminar" OnClick="btnEliminar_Click" CssClass="botonEliminar" /><asp:Button ID="btnModificar" runat="server" Text="Modificar" OnClick="btnModificar_Click" CssClass="botonModificar" /><asp:Button ID="btnNuevo"
            runat="server" Text="Nuevo" OnClick="btnNuevo_Click" CssClass="botonAceptar" /><asp:Button ID="btnAceptar" runat="server" Text="Aceptar" OnClick="btnAceptar_Click" CssClass="botonNuevo" ValidationGroup="ValidaCampos" /></td>
        </tr>
        <tr>
            <td colspan="4">
                <br />
                <hr />
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="4">
    <asp:GridView ID="gdvBanco" CssClass="GridViewStyle" runat="server" AutoGenerateColumns="False" DataSourceID="odsBanco" DataKeyNames="Id" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" AllowPaging="True" Width="100%">
        <Columns>
            <asp:BoundField DataField="Codigo"  HeaderText="Codigo" SortExpression="Codigo" >
                <ItemStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="Nombre" HeaderText="Nombre" SortExpression="Nombre" >
                <ItemStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
        <RowStyle CssClass="RowStyle" />
        <PagerStyle CssClass="PagerStyle" />
        <HeaderStyle CssClass="HeaderStyle" />
        <AlternatingRowStyle CssClass="AltRowStyle" />
        <SelectedRowStyle CssClass="SelectedRowStyle" />
    </asp:GridView>
            </td>
        </tr>
    </table>
        <br />
        <br />
        <br />
    </asp:Panel>
    &nbsp;
    <asp:ObjectDataSource ID="odsBanco" runat="server" DataObjectTypeName="EYDIngenieria.ERP.ObjetosDeNegocio.Dominio.Banco"
        DeleteMethod="Eliminar" InsertMethod="Agregar" SelectMethod="Listar" TypeName="EYDIngenieria.ERP.Aplicacion.Mantenedores.MantenedorBanco"
        UpdateMethod="Modificar"></asp:ObjectDataSource>
    <br />
    <br />
    <br />
</asp:Content>

